package com.gwz.wxtime.core.config;

import com.gwz.wxtime.core.util.GPT2Tokenizer;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class ChatgptConfig {

    @Bean
    public GPT2Tokenizer gPT2Tokenizer() {
        return GPT2Tokenizer.fromPretrained("tokenizers/gpt2/");
    }
}
